package com.kqs.kafkasimpledemo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Service;

@Service
public class KafkaServiceImpl implements KafkaService {

  @Autowired
  private KafkaTemplate kafkaTemplate;

  @Override
  public void sayHello() {
    kafkaTemplate.send("test", "hello");
  }
}
